package com.android.jay.mvc;

import java.util.Random;

/**
 * Created by wzp on 2020/2/25 0025.
 * <p>
 * 描述  ：todo
 */
public class MVCModel {

    //查询数据
    public void getAccountData(String Name, MvcCallabck callabck) {

        Random random = new Random();
        boolean isSuccess = random.nextBoolean();
        if (isSuccess) {
            Account account = new Account();
            account.setLevel(100 + "");
            account.setUserName(Name);
            callabck.success(account);
        } else {
            callabck.failed();
        }
    }
}
